
//window.location.href.slice(0, window.location.href.indexOf('/boss'))
const state={
    userAdminId:true,
    initObj:{},
}
const mutations = {
	USER_ADMINID: (state) => {
		// eslint-disable-next-line no-prototype-builtins
    state.userAdminId=false
	},
  SET_INITOBJ:(state,obj)=>{
    state.initObj= obj
  }
}
const actions = {
  userAdminId({
    commit
  }, data) {
    commit('USER_ADMINID')
  },
  setinitData({
    commit
  }, data){
    commit('SET_INITOBJ',data)
  }
}
export default {
  state,
  mutations,
  actions
}